package com.pozu.new_retail.service;

import java.util.HashMap;
import java.util.List;

import com.pozu.new_retail.dao.model.ShoppingCart;
import com.pozu.new_retail.dao.vo.ShoppingCartVo;

public interface ShoppingCartService {

	public ShoppingCart queryByShoppingCartId(long shoppingCartId);
	
	public int saveShoppingCart(ShoppingCart shoppingCart);
	
	public int updateShoppingCart(ShoppingCart shoppingCart);
	
	public HashMap<Integer, List<ShoppingCartVo>> queryByMap(HashMap<String, Object> map);
	
	public int checkShoppingCarts(List<ShoppingCart> carts,Integer codeDiscount);
	
	public ShoppingCart queryByGoodsExtIdAndUserId(HashMap<String, Object> map);
	
	public int queryMyCountByUserId(HashMap<String, Object> hashMap);
	
}
